<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>凤凰基金</title>
<link rel="stylesheet" type="text/css" href="<%=basePath%>skin/css/pf/link.css"/>
<script type="text/javascript" src="<%=basePath%>skin/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>skin/js/pf/script.js"></script>
<script type="text/javascript" src="<%=basePath%>skin/js/common.js"></script>
</head>

<body>
<c:import url="/layouts/top.jsp" />
<!--二级页面大图-->
<div id="publics">
	<div class="bg" style="background:url(<%=basePath%>skin/images/pf/novice_bg.jpg) center no-repeat;">
		<p class="bgs" style="background:url(<%=basePath%>skin/images/pf/novice_bg1.jpg) center no-repeat;"></p>
	</div>
</div>
<!--二级页内容区-->
<div id="second">
	<div class="second">
			<div class="nav">
				<c:forEach items="${newsTypes }" var="newsType" varStatus="status">
					<c:choose>
						<c:when test="${status.first }">
							<p class="title">${newsType.type }</p>
						</c:when>
						<c:otherwise>
							<c:choose>
							<c:when test="${not empty newsType.url }">
								<a href="${newsType.url }" <c:if test="${nType.id == newsType.id }">class="click"</c:if>>
							</c:when>
							<c:otherwise>
								<a href="<%=basePath%>shop/news/list.shtml?newsTypeId=${newsType.id}" <c:if test="${nType.id == newsType.id }">class="click"</c:if>>
							</c:otherwise>
							</c:choose>
								${newsType.type }
							</a>
						</c:otherwise>
					</c:choose>
				</c:forEach>
			</div>
		<div class="right">
			<div class="news">
				<ul>
					<c:forEach items="${nType.newsSet }" var="news">
						<li>
							<a href="<%=basePath%>shop/news/detail.shtml?newsId=${news.id}" class="img">
								<c:if test="${not empty news.source}">
									<img src="<%=basePath%>download.shtml?filepath=${news.source}" title="${news.title}"/>		  			
					  			</c:if>
							</a>
							<div class="rights">
								<a href="<%=basePath%>shop/news/detail.shtml?newsId=${news.id}" class="title">${news.title}</a>
								<p class="times"><span class="time"><fmt:formatDate value="${news.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></span><span class="arr"><b></b></span></p>
								<p class="txt">${news.introduction}</p>
							</div>
						</li>
					</c:forEach>
				</ul>				
			</div>
		</div>
		<div id="clear"></div><!--清除浮动-->
	</div>
</div>
<c:import url="/layouts/foot.jsp" />
</body>
</html>
